package com.wenson.behavior.command;

/**
 * @ClassName: CommandClient
 * @Author: luowangcheng
 * @Date: 2024/6/16 12:48
 * @Description:
 */
public class CommandClient {
    public static void main(String[] args) {
        BulbSwitcher switcher = new BulbSwitcher();
        Bulb bulb = new Bulb();
        Command switchCommand = new SwitchCommand(bulb);

        switcher.setCommand(switchCommand);
        switcher.buttonPush();
        switcher.buttonPop();
    }
}
